const config = require("./webpack.config");
module.exports = {
  ...config,
  mode: "development",
  entry: {
    hot: "webpack/hot/dev-server.js",
    client: "webpack-dev-server/client/index.js?hot=true&live-reload=true",
    main: config.entry,
  },
  devtool: "eval-cheap-module-source-map",
  devServer: {
    port: 8888,
    compress: true,
    historyApiFallback: true,
    client: {
      overlay: false,
    },

    proxy: [
      {
        context: ["/api"],
        target: "http://wq.bwstudent.com:7999",
        pathRewrite: { "^/api": "" },
      },
    ],
  },
};
// wq.bwstudent.com:7999
